package com.example.loader;

import com.hazelcast.config.Config;
import com.hazelcast.core.HazelcastInstance;

/*
 * @className: HazelcastLoader
 * @author: chentao
 * @date: 2025/2/19 上午8:02
 * @Version: 1.0
 * @description:
 */
public interface HazelcastLoader {

    //加载配置
    default public void loadConfig(Config config) throws Exception {

    };

    //启动程序
    default public void init(HazelcastInstance hazelcastInstance) throws Exception {

    };

    //销毁程序回收资源
    default public void destroy(HazelcastInstance hazelcastInstance) throws Exception {

    };
}
